/*
 * @Author: fishroom
 * @Date: 2022-10-12 16:29:21
 * @LastEditTime: 2022-10-12 16:59:11
 * @FilePath: \koa\app\model\sys_menu.ts
 */
import { Model, Table, Column, DataType, CreatedAt, UpdatedAt } from "Sequelize-typescript";
@Table
class sys_menu extends Model {
  @Column({
    type: DataType.INTEGER,
    primaryKey: true,
    autoIncrement: true,
    unique: true,
    allowNull: false,
  })
  menu_id!: number;
  @Column
  parent_id!: number;
  @Column
  name!: string;
  @Column
  url!: string;
  @Column
  perms!: string;
  @Column
  type!: number;
  @Column
  icon!: string;
  @Column
  order_num!: number;
  @CreatedAt
  creata_time!: string;
  @UpdatedAt
  updated_time!: string;
}
export default sys_menu;
